package mogiksaop.qliphoth.common.entities.render;

import mogiksaop.qliphoth.common.entities.EntityQliphortScout;
import mogiksaop.qliphoth.common.entities.models.ModelQliphortScout;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.util.ResourceLocation;

public class EntityRenderQliphortScout extends RenderLiving<EntityQliphortScout> {

	public EntityRenderQliphortScout(RenderManager rendermanagerIn) {
		super(rendermanagerIn, (ModelBase)new ModelQliphortScout(), 1f);
	}

	@Override
	public void renderLivingLabel(EntityQliphortScout entityVH, String str, double x, double y, double z, int maxDistance)
	{
		super.renderLivingLabel(entityVH, str, x, y+0.2, z, maxDistance);
	}
	
	@Override
	protected void preRenderCallback(EntityQliphortScout entityVH, float f)
	{
		if(!entityVH.isChild())
		{
			GlStateManager.translate((double)-0.075, (double)0.0, (double)-0.45);
		}
	}
	
	@Override
	protected ResourceLocation getEntityTexture(EntityQliphortScout entity) {
		return new ResourceLocation("minecraft", "textures/entity/horse/horse_white.png");
	}

}
